package com.example.noobpackage.ui.addpackage

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.noobpackage.logic.model.ExpressData
import com.example.noobpackage.logic.repository.ExpressRepository
import kotlinx.coroutines.launch

class AddPackageViewModel : ViewModel() {
    fun addExpress(express: ExpressData) {
        viewModelScope.launch {
            ExpressRepository.addLocalExpress(express)
        }
    }
}